from django.db import models
from django.contrib.auth.models import User
# Create your models here.
class UserInfo(models.Model):
	user = models.OneToOneField(User, on_delete=models.CASCADE, unique=True)
	school = models.CharField(max_length=100, blank =True)
	company = models.CharField(max_length=100,blank=True)
	profession = models.CharField(max_length=100,blank=True)
	address = models.CharField(max_length=100,blank=True)
	aboutme = models.TextField(max_length=100,blank=True)
	def __str__():
		return 'user.{}'.format(self.user.username)